Media Foundation External
Type
library
Description
Commands and functions for using the Media Foundation API on Windows to transcode and edit video.
Associated Syntax
Command
Name | Summary | Syntax |
---|---|---|
mediaFoundationCreateReader | Create a media file reader Platform:desktop | mediaFoundationCreateReader <pFilePath> |
mediaFoundationDeleteVideoProcessor | Delete a video processor Platform:desktop | mediaFoundationDeleteVideoProcessor <pVideoProcessorID> |
mediaFoundationAddStreamToWriter | Add a stream to a writer Platform:desktop | mediaFoundationAddStreamToWriter <pFilePath>, <pMediaTypeID> |
mediaFoundationTranscode | Transcode part or all of the media from from a reader to a writer Platform:desktop | mediaFoundationTranscode <pReaderFilePath>, <pWriterFilePath>, <pVideoProcessorID>, [<pOffset>], [<pFrom>], [<pDuration>] |
mediaFoundationReaderStreamSetCurrentMediaType | Set the current media type of a reader stream. Platform:desktop | mediaFoundationReaderStreamSetCurrentMediaType <pFilePath>, <pStreamIndex>, <pMediaTypeID> |
mediaFoundationCreateVideoProcessor | Create a video processor Platform:desktop | mediaFoundationCreateVideoProcessor |
mediaFoundationWriterStreamSetInputMediaType | Set the input media type of a stream of a writer Platform:desktop | mediaFoundationWriterStreamSetInputMediaType <pFilePath>, <pStreamIndex>, <pMediaTypeID> |
mediaFoundationVideoProcessorSetInputMediaType | Set the current input media type Platform:desktop | mediaFoundationVideoProcessorSetInputMediaType <pVideoProcessorID>, <pMediaTypeID> |
mediaFoundationVideoProcessorSetSourceRect | Set the source rect of the video processor Platform:desktop | mediaFoundationVideoProcessorSetSourceRect <pVideoProcessorID>, <pLeft>, <pTop>, <pRight>, <pBottom> |
mediaFoundationVideoProcessorSetOutputMediaType | Set the current output media type Platform:desktop | mediaFoundationVideoProcessorSetOutputMediaType <pVideoProcessorID>, <pMediaTypeID> |
mediaFoundationMediaTypeSetAttribute | Set an attribute of a media type Platform:desktop | mediaFoundationMediaTypeSetAttribute <pMediaTypeID>, <pAttribute>, <pValue> |
mediaFoundationWriterBeginWriting | Begin writing to a media file Platform:desktop | mediaFoundationWriterBeginWriting <pFilePath> |
mediaFoundationDeleteMediaType | Delete a media tyoe Platform:desktop | mediaFoundationDeleteMediaType <pMediaTypeID> |
mediaFoundationWriterFinalizeWriting | Finalize writing to a media file Platform:desktop | mediaFoundationWriterFinalizeWriting <pFilePath> |
mediaFoundationReaderSetStreamSelection | Set the stream selection Platform:desktop | mediaFoundationReaderSetStreamSelection <pFilePath>, <pStreamIndex>, <pSelected> |
mediaFoundationVideoProcessorSetDestinationRect | Set the destination rect of the video processor Platform:windowsPlatform: desktop | mediaFoundationVideoProcessorSetDestinationRect <pVideoProcessorID>, <pLeft>, <pTop>, <pRight>, <pBottom> |
mediaFoundationCreateWriter | Create a media file writer. Platform:desktop | mediaFoundationCreateWriter <pFilePath> |
mediaFoundationCreateMediaType | Create a media type Platform:desktop | mediaFoundationCreateMediaType |
mediaFoundationDeleteWriter | Delete a media file writer. Platform:desktop | mediaFoundationDeleteWriter <pFilePath> |
mediaFoundationDeleteReader | Delete a media file reader Platform:desktop | mediaFoundationDeleteReader <pFilePath> |
Function
Name | Summary | Syntax |
---|---|---|
mediaFoundationReaderNumberOfStreams | Get the number of streams in the media file Platform:desktop | mediaFoundationReaderNumberOfStreams(<pFilePath>) |
mediaFoundationMediaTypeGetAttribute | Get an attribute of a media type Platform:desktop | mediaFoundationMediaTypeGetAttribute(<pMediaTypeID>, <pAttribute>) |
mediaFoundationReaderDuration | Get the duration of the media file. Platform:desktop | mediaFoundationReaderDuration(<pFilePath>) |
mediaFoundationVideoProcessorGetInputAvailableMediaType | Get an input media type that the video processor supports Platform:desktop | mediaFoundationVideoProcessorGetInputAvailableMediaType(<pVideoProcessorID>, <pIndex>) |
mediaFoundationReaderStreamGetCurrentMediaType | Get the current media type of a reader stream. Platform:desktop | mediaFoundationReaderStreamGetCurrentMediaType(<pFilePath>, <pStreamIndex>) |
mediaFoundationReaderStreamIsSelected | Query if the stream is selected Platform:desktop | mediaFoundationReaderStreamIsSelected(<pFilePath>, <pStreamIndex>) |
mediaFoundationReaderStreamGetNativeMediaType | Get the ID of the native media type of a reader stream Platform:desktop | mediaFoundationReaderStreamGetNativeMediaType(<pFilePath>, <pStreamIndex>) |
mediaFoundationVideoProcessorGetOutputAvailableMediaType | Get an output media type that the video processor supports Platform:desktop | mediaFoundationVideoProcessorGetOutputAvailableMediaType(<pVideoProcessorID>, <pIndex>) |
mediaFoundationVideoProcessorGetOutputMediaType | Get the current output media type Platform:desktop | mediaFoundationVideoProcessorGetOutputMediaType(<pVideoProcessorID>) |